package com.justspeak.module;

import java.io.Serializable;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * copyright justspeak 2010
 * 
 * @date 2011-9-13 V1.0初始作成
 * @author zhouhongbing
 * @version V1.0
 * @brief CourseInfo的定义
 * @since 1.0
 * @history 2011-9-13 V1.X 修改内容，一个版本一行
 * @descript 此类用来对应服务器端的课程列表xml表示的对象。
 * @todo 未完成的事项
 */
public class CourseInfo implements Serializable {



    /** 
     */
    private static final long serialVersionUID = 1L;

    private String id;

    private String book;

    private String unit;

    private String unitname;
    
    private String mp3Name;

    private String mp3Size;

    private String lrcName;

    private String lrcSize;

    private boolean checked;

    
    /**
     * 
     */
    public CourseInfo() {
	super();
    }

    /**
     * 构造函数
     * 
     * @param id
     * @param book
     * @param unit
     * @param unitname
     * @param mp3Name
     * @param mp3Size
     * @param lrcName
     * @param lrcSize
     */
    public CourseInfo(String id, String book, String unit, String unitname,
	    String mp3Name, String mp3Size, String lrcName, String lrcSize,boolean checked) {
	super();
	this.id = id;
	this.book = book;
	this.unit = unit;
	this.unitname = unitname;
	this.mp3Name = mp3Name;
	this.mp3Size = mp3Size;
	this.lrcName = lrcName;
	this.lrcSize = lrcSize;
	this.checked=checked;
    }

    /*
     * (非 Javadoc)
     * 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
	return "CourseInfo [book=" + book + ", id=" + id + ", lrcName="
		+ lrcName + ", lrcSize=" + lrcSize + ", mp3Name=" + mp3Name
		+ ", mp3Size=" + mp3Size + ", unit=" + unit + ", unitname="
		+ unitname + "]";
    }
    /**
     * @return id
     */
    public String getId() {
	return id;
    }

    /**
     * @param id
     *            赋值 id
     */
    public void setId(String id) {
	this.id = id;
    }

    /**
     * @return book
     */
    public String getBook() {
	return book;
    }

    /**
     * @param book
     *            赋值 book
     */
    public void setBook(String book) {
	this.book = book;
    }

    /**
     * @return unit
     */
    public String getUnit() {
	return unit;
    }

    /**
     * @param unit
     *            赋值 unit
     */
    public void setUnit(String unit) {
	this.unit = unit;
    }

    /**
     * @return unitname
     */
    public String getUnitname() {
	return unitname;
    }

    /**
     * @param unitname
     *            赋值 unitname
     */
    public void setUnitname(String unitname) {
	this.unitname = unitname;
    }

    /**
     * @return mp3Name
     */
    public String getMp3Name() {
	return mp3Name;
    }

    /**
     * @param mp3Name
     *            赋值 mp3Name
     */
    public void setMp3Name(String mp3Name) {
	this.mp3Name = mp3Name;
    }

    /**
     * @return mp3Size
     */
    public String getMp3Size() {
	return mp3Size;
    }

    /**
     * @param mp3Size
     *            赋值 mp3Size
     */
    public void setMp3Size(String mp3Size) {
	this.mp3Size = mp3Size;
    }

    /**
     * @return lrcName
     */
    public String getLrcName() {
	return lrcName;
    }

    /**
     * @param lrcName
     *            赋值 lrcName
     */
    public void setLrcName(String lrcName) {
	this.lrcName = lrcName;
    }

    /**
     * @return lrcSize
     */
    public String getLrcSize() {
	return lrcSize;
    }

    /**
     * @param lrcSize
     *            赋值 lrcSize
     */
    public void setLrcSize(String lrcSize) {
	this.lrcSize = lrcSize;
    }

    public void setChecked(boolean checked) {
	this.checked = checked;
    }

    public boolean isChecked() {
	return checked;
    }

   

}
